#! /bin/ksh
# shell to compute and plot 1-D spectrum
# Author: Jack
set -x

### set parameters
panel=cdp371to380
cdpmin=371
cdpmax=380
fold=30
d2=$(bc -l <<-END
	1/$fold
END)

### get spectrum of the selected cmp's
sugain <$panel tpow=2 gpow=0.3 |
suspec1 |
suximage f2=$cdpmin d2=$d2 \
	title="1-D Transform of $panel" \
	label1="Frequency (Hz)" label2="Cdp" \
	perc=98 grid1=solid grid2=solid &
